package Day3Zuoye;

public class Yuangong {
    String num;
    String yname;
    String sex;
    String zhiwu;
    int money;
    String id;
    String year;

    public Yuangong(String num, String yname, String sex, String zhiwu, int money, String id, String year) {
        this.num = num;
        this.yname = yname;
        this.sex = sex;
        this.zhiwu = zhiwu;
        this.money = money;
        this.id = id;
        this.year = year;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getYname() {
        return yname;
    }

    public void setYname(String yname) {
        this.yname = yname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getZhiwu() {
        return zhiwu;
    }

    public void setZhiwu(String zhiwu) {
        this.zhiwu = zhiwu;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public void show(){
        System.out.println("工号:"+num+" 姓名:"+yname+" 性别:"+sex+" 职务:"+zhiwu+" 薪水:"+money+" 身份证号:"+id+" 工作年限:"+year);
    }
}
